@import './element-variables.scss';
@import './color-dark.scss';
@import './config.scss';

*{margin:0;padding:0;}
html,body{
    width:100%;
    height:100%;
    font-size: 16px;
    color: #333333;
}
#app,.wrapper{
  width:100%;
  height:100%;
  overflow: hidden;
  display: flex;
}
body{
    font-family:"MicrosoftYaHei","Monospaced Number","Chinese Quote",-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"PingFang SC","Hiragino Sans GB","Microsoft YaHei","Helvetica Neue",Helvetica,Arial,sans-serif;
}
a{text-decoration: none}
.content{
    background: none repeat scroll 0 0 #fff;
    position: absolute;
    left: 250px;
    right: 0;
    top: 70px;
    bottom:0;
    width: auto;
    padding:40px;
    box-sizing: border-box;
    overflow-y: auto;
}
.crumbs{
    margin-bottom: 20px;
}
.pagination{
    margin: 20px 0;
    text-align: right;
}
.plugins-tips{
    padding:20px 10px;
    margin-bottom: 20px;
}
.el-button+.el-tooltip {
    margin-left: 10px;
}
.el-table td,.el-table th{
    padding:5px 18px;
}
.el-table tr:hover{
    background: #f6faff;
}
.mgb20{
    margin-bottom: 20px;
}

.move-enter-active,.move-leave-active{
    transition: opacity .5s;
}
.move-enter,.move-leave{
    opacity: 0;
}
/*BaseForm*/
.form-box{
    width:600px;
}
.form-box .line{
    text-align: center;
}
.el-time-panel__content::after, .el-time-panel__content::before {
    margin-top: -7px;
}
/*Readme*/
.ms-doc .el-checkbox__input.is-disabled+.el-checkbox__label{
    color: #333;
    cursor: pointer;
}
/*Upload*/
.pure-button{
    width:150px;
    height:40px;
    line-height: 40px;
    text-align: center;
    color: #fff;
    border-radius: 3px;
}
.g-core-image-corp-container .info-aside{
    height:45px;
}
.el-upload--text {
    background-color: #fff;
    border: 1px dashed #d9d9d9;
    border-radius: 6px;
    box-sizing: border-box;
    width: 360px;
    height: 180px;
    text-align: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.el-upload--text .el-icon-upload {
    font-size: 67px;
    color: #97a8be;
    margin: 40px 0 16px;
    line-height: 50px;
}
.el-upload--text {
    color: #97a8be;
    font-size: 14px;
    text-align: center;
}
.el-upload--text em {
    font-style: normal;
}
/*VueEditor*/
.ql-container{
    min-height: 400px;
}
.ql-snow .ql-tooltip{
    transform: translateX(117.5px) translateY(10px) !important;
}
.editor-btn{
    margin-top: 20px;
}

.flex{
  display: flex;
}
.flex1{
  flex: 1;
}
/*水平主轴 左到右*/
.flex-row{
  flex-direction: row;
}
/*垂直主轴 上到下*/
.flex-col{
  flex-direction: column;
}
/*超过宽度换行*/
.flex-wrap{
  flex-wrap: wrap;
}
/*水平居中*/
.flex-jc-center{
  justify-content: center;
}
/*垂直居中*/
.flex-ai-center{
  align-items: center;
}
/*水平垂直居中*/
.flex-center{
  justify-content: center;
  align-items: center;
}

//表格表头边框
.el-card__header{
    background-color: $color-card-header;
}

.el-card{
    margin-bottom: 20px;
    &.pb0 .el-card__body{
        padding-bottom: 0;
    }
    .el-form-item.is-success .el-input__inner,
    .el-form-item.is-success .el-textarea__inner
    {
        border-color: #dcdfe6;
    }
}

.el-dialog{
    .el-dialog__header{
        border-radius: 2px;
        background-color: $color-card-header;
        border-bottom: 1px solid $color-border;
    }
    .el-form-item.is-success .el-input__inner,
    .el-form-item.is-success .el-textarea__inner
    {
        border-color: #dcdfe6;
    }
}

.el-dialog-modal-page{
    display: flex;
    justify-content: center;
    align-items: center;
    .el-dialog{
        margin: 0 !important;
        max-height: 90%;
        display: flex;
        flex-direction: column;
        .el-dialog__body{
            flex:1;
            overflow-y: auto;
        }
    }
}

.el-collapse{
    .el-collapse-item{
        margin-bottom: 10px;
        .el-collapse-item__header{
            background-color: $color-card-header;
        }
        .el-collapse-item__header>div{
            padding: 0 10px;
        }
        .el-collapse-item__content{
            padding: 10px 10px 0px 10px;
        }
        .el-collapse-item__wrap{
            border-bottom-width:0px ;
        }
        .el-collapse{
            border-bottom-width:0px ;
        }
    }
}
.tab-view-pages{
    .el-tabs__content{
        display: none;
    }
    .el-tabs__nav{
        .is-active{
            background-color: $color-body-main;
            border: 0;
        }
    }
    .el-tabs__nav-prev, .el-tabs__nav-next{
        padding: 0 5px;
    }
}

.main-slider-menu {
    box-shadow: 2px 0 6px rgba(0, 21, 41, .35);
    background-color: $color-body-slider;
    .el-menu {
        border-right: 0;
        .iconfont {
            padding-right: 10px;
        }
        i {
            color: #63618C;
        }
        background-color: $color-body-slider;

        .el-submenu {
            .el-submenu__title {
                color: #3C3A6F;
                font-weight: bold;
                &:hover {
                    color: #3C3A6F;
                    background-color: #FFFFFF;
                }
            }
            .el-menu{
                background-color: #FFFFFF;
            }
        }
        .el-menu-item {
            min-width: 0;
            color: #3C3A6F;
            &:focus {
                background-color: transparent;
            }
            &.is-active {
                color: #F7AF4D;
            }
            &:hover {
                color: #FFFFFF;
                background-color: #F7AF4D;
            }
            span {
                font-size: 13px;
            }
        }
        .el-menu-item, .el-submenu__title {
            height: 50px;
            line-height: 50px;
            min-width: 0;
            font-size: 14px;
        }
    }
}
//取消分页组件的分页button高度
.el-pager{
    margin-top: 0 !important;
}
